﻿using Dyao.Book.Contract;

namespace Dyao.Book.Application.Abstractions
{
    public interface ICrawlBookContentSpider
    {
        /// <summary>
        /// 按照章节集合链接爬取正文
        /// </summary>
        /// <param name="dtos">书籍信息集合</param>
        /// <param name="setting">书源仓库</param>
        /// <param name="cancellationToken">取消令牌</param>
        /// <returns></returns>
        Task<bool> CrawlContentByCataloguesAsync(List<CrawCatalogueContentDto> dtos, BookSourceWarehouseDto setting, CancellationToken cancellationToken);
    }
}
